package com.core.bean;

import java.util.List;

/**
 * 方
 * SPU产品表
 */
public class Product {

    /**
     * SPU产品id
     */
    private String  id;
    /**
     * 产品名称
     */
    private String name;
    /**
     * 商品类别
     */
    private String cid;
    /**
     * 品牌名
     */
    private String brand;
    /**
     * 产品图片
     */
    private String pic;
    /**
     * 产品详情
     */
    private String content;
    /**
     * 规格属性
     */
    private List<Property> properties;

    private String property;
    /**
     * 产品状态 0停用 1正常
     */
    private int status;

    public Product() {
    }

    public Product(String id, String name, String cid, String brand, String pic, String content, List<Property> properties, String property, int status) {
        this.id = id;
        this.name = name;
        this.cid = cid;
        this.brand = brand;
        this.pic = pic;
        this.content = content;
        this.properties = properties;
        this.property = property;
        this.status = status;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", cid='" + cid + '\'' +
                ", brand='" + brand + '\'' +
                ", pic='" + pic + '\'' +
                ", content='" + content + '\'' +
                ", properties=" + properties +
                ", property='" + property + '\'' +
                ", status=" + status +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<Property> getProperties() {
        return properties;
    }

    public void setProperties(List<Property> properties) {
        this.properties = properties;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }
}
